# encoding = utf-8
#!/usr/sbin
from excelword.config import host
def adaptionurl(url):
    fullurl = None
    # 判断url 是否为完全路径还是简化路径，先通过分割后第一个字符来判断
    if ("https" in (url.split("/")[0]) or "http" in (url.split("/")[0])):
        fullurl = url
    else:
        # 精简路径下补全路径
        fullurl = "https://" + host + url
    return fullurl